<?php
include($folder.'/layouts/code-behind/frontend.php');
function blc_cikklista_select($from, $itemsPerPage)
{
	return query(
	'SELECT 
		id AS id, 
		title AS title, 
		description AS description, 
		DATE_FORMAT(created,\'%Y.%m.%d. %H:%i\') AS created 
	FROM 
		text 
	WHERE 
		textcategory_id=:id LIMIT :from,:itemsPerPage',
	array('id'=>(int)$_GET['id'],'from'=>$from,'itemsPerPage'=>$itemsPerPage));
}
function blc_cikklista_select_count()
{
	return queryScalar('SELECT COUNT(*) FROM text WHERE textcategory_id=:id', array('id'=>(int)$_GET['id']));
}
$id = (int)$_GET['id'];
$content['description'] = queryScalar('SELECT description FROM textcategory WHERE id=:id',
	array('id'=>$id));
$master['action'] = null;
$master['attributes'] = null;
// $master['pageTitle'] = __($content['description']);
?>